#include "stdio.h"
#include "sys.h"
#include "delay.h"
#include "usart.h"
#include "usart_2.h"
#include "stdlib.h"
#include "Stack.h"

#ifndef _Lock
#define _Lock

#define Lock_ON   PAout(0)=0
#define Lock_OFF   PAout(0)=1
#define KEY  PAin(1)

#endif




void Lock_Init(void);

int Lock(int i);

int Open(int i);















